package evo.springboot;

import evo.springboot.service.StudentService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(Application.class, args);
        StudentService studentService = (StudentService) applicationContext.getBean("studentServiceImpl");
        System.out.println(studentService.say());
    }

}
